home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19950929-19951130 / 000405_news@columbia.edu_Thu Nov 16 22:51:14 1995.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA19264
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun>); Fri, 17 Nov 1995 09:42:35 -0500
  3. Received: (from news@localhost) by apakabar.cc.columbia.edu (8.6.12/8.6.12) id JAA29492 for kermit.misc@watsun; Fri, 17 Nov 1995 09:42:33 -0500
  4. Path: news.columbia.edu!sol.ctr.columbia.edu!news.kei.com!bloom-beacon.mit.edu!spool.mu.edu!torn!news.ccs.queensu.ca!news.ccs.queensu.ca!not-for-mail
  5. From: mike@ccs.queensu.ca (Mike Smith)
  6. Newsgroups: comp.protocols.kermit.misc
  7. Subject: Problems with special characters in Output strings
  8. Date: 16 Nov 1995 17:51:14 -0500
  9. Organization: Queen's University, Kingston
  10. Lines: 39
  11. Sender: mike@knot.QueensU.CA
  12. Message-Id: <48gf92$5ps@ccs-sparc2.queensu.ca>
  13. Nntp-Posting-Host: ccs-sparc2.ccs
  14. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  15.  
  16.  
  17. This is with MSK 3.14 patch level 9.
  18.  
  19. I have a login script that prompts for a password with ask and
  20. later uses output to send the password at the appropriate time.
  21. Pretty standard stuff.  My problem is that occasionally the password
  22. has a character that is somehow special to MSK.  The trouble first
  23. came to light with a leading @ character.  If, say, \%p is @blah,
  24. the statement
  25.  
  26.    output \%p\13
  27.  
  28. looks for an indirect file named blah.  My solution to this was
  29. to translate @ characters in \%p as follows:
  30.  
  31.    asg \%p \Freplace(\%p,@,\{64})
  32.  
  33. This solves the leading @ problem.  Then I got a report from somebody
  34. with a leading ) in their password.  I tried many permutations on curly
  35. bracket quoting and \F functions like \Fcontents but could not come up
  36. with a combination that MSK liked.  I'm willing to admit that I do not
  37. understand MSK's parsing rules but I'm fairly convinced that many of the
  38. combinations I tried were reasonable and produced unreasonable results.
  39. Regardless, I eventually gave up beating my head on the \Freplace function
  40. and looked again at the output function.  To solve the leading @ and )
  41. characters I omitted the \Freplace altogether and changed the output to:
  42.  
  43.    output {\%p\13}
  44.  
  45. If you're still reading, you've probably predicted that the above fails
  46. when \%p begins with }.
  47.  
  48. I'm hoping that someone can tell me I'm being doltish and the solution is
  49. to simply <fill in the blank>.
  50. -- 
  51.  
  52.  Mike Smith                                  mike@ccs.queensu.ca
  53.  Queen's University                          Michael.D.Smith@QueensU.CA
  54.  Computing and Communications Services       (613) 545-2024